package com.zhentao.config;

import com.zhentao.interceptor.ChargeMarketInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName: WmInceptorConfig
 * @Author: 振涛教育_Q
 * @Date: 2024/10/26 23:14
 */
@Configuration
public class ChargeMarketInceptorConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new ChargeMarketInterceptor()).addPathPatterns("/**");
    }
}
